const pm = function () {
  return new Promise((resolve, reject) => {
    console.log("pm");
    reject();
  });
};

async function aa() {
  try {
    await pm().then(res => {
      console.log(res);
    });
  } catch {
    console.log(`aa`);
  }
}

aa();
